﻿using adb;
using MQTTnet.Server;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SensorCollection
{


    /// <summary>
    /// 数据处理接口
    /// </summary>
    public interface IDataDealwith 
    {
        /// <summary>
        /// 处理数据
        /// </summary>
        /// <param name="data">收到的数据</param>
        /// <param name="Topic">上传数据主题</param>
        Task ReactData(object data, string Topic,string deviceSN);
        /// <summary>
        /// 获取类型
        /// </summary>
        object JsonToModel(string json,string deviceSN);
        /// <summary>
        /// 对应上的分类ID
        /// </summary>
        long keyId { get; }
    }
}
